package com.pro.service.impl;

import com.pro.bean.UserInfo;
import com.pro.bean.VipSetmeal;
import com.pro.dao.VipSetmealDao;
import com.pro.service.VipSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *vip_Setmeal服务层实现类
 **/
@Service
public class VipSetmealServiceImpl implements VipSetmealService {
    //注入vip_SetmealDao接口
    @Autowired
    private VipSetmealDao vipSetmealDao;

    /**
     * 查询表中所有数据
     *
     **/
    @Override
    public List<VipSetmeal> all() {
        return vipSetmealDao.all();
    }

    /**
     * 根据id查询单个数据
     *
     **/
    public VipSetmeal selOne(int id) {
        return vipSetmealDao.selOne(id);
    }

    @Override
    public int add(VipSetmeal vipSetmeal) {
        return vipSetmealDao.add(vipSetmeal);
    }

    @Override
    public int updUserPermissionId(UserInfo userInfo) {
        return vipSetmealDao.updUserPermissionId(userInfo);
    }

    @Override
    public int upd(VipSetmeal vipSetmeal) {
        return vipSetmealDao.upd(vipSetmeal);
    }

    @Override
    public int del(int id) {
        return vipSetmealDao.del(id);
    }


}
